﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Workflow.Activities.Rules.Design;
using System.Workflow.Activities.Rules;

namespace classGen {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e) {
            var result =saveFileDialog1.ShowDialog();
            if (result == System.Windows.Forms.DialogResult.OK) {
                libraryHelper.GenLib(saveFileDialog1.FileName);
            }
        }

        private void button2_Click(object sender, EventArgs e) {
            var result = openFileDialog1.ShowDialog();
            if (result == System.Windows.Forms.DialogResult.OK) {
                libraryHelper.ExecuteDLL(openFileDialog1.FileName);
            }
        }

        private void button3_Click(object sender, EventArgs e) {
            RuleSet ruleSet = null;
            RuleSetDialog dialog = new RuleSetDialog(typeof(FlowTicket),null,ruleSet);
            dialog.ShowDialog();
        }
    }
}
